﻿<%@ Page Language="C#" Inherits="WebManager.BasePage" %>

<%@ Import Namespace="TalentPools.Model" %>
<%@ Import Namespace="TalentPools.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CompanyClass.CheckQyUserLoginState();//检查企业用户是否登录
            try
            {
                int resumeId = Convert.ToInt32(Request.QueryString["id"]);
                DataBind(resumeId);
            }
            catch(Exception ex)
            {
                JsWindows(ex.Message,"../Index.aspx");
            }
        }
    }
    public void DataBind(int resumeId)
    {
        //绑定基本信息
        fvBaseInfo.DataSource = new checkresumeManager().getresumeByresumeid(resumeId);
        fvBaseInfo.DataBind();
        //绑定工作履历
        rpRecord.DataSource = new RecordManager().GetRecord(resumeId);
        rpRecord.DataBind();
        //绑定培训经历
        rpTraning.DataSource = new TrainingManager().GetTrains(resumeId);
        rpTraning.DataBind();
        //绑定自定义信息
        rpCustom.DataSource = new CustomManager().GetCustom(resumeId);
        rpCustom.DataBind();
        //绑定求职意向
        fvIntention.DataSource = new IntentionManager().GetIntentionByResumeId(resumeId);
        fvIntention.DataBind();
        //绑定技能
        fvSkill.DataSource = new SkillManager().GetSkill(resumeId);
        fvSkill.DataBind();
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        body
        {
            font: 12px;
            margin: 0px;
            padding: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 960px; height: auto; margin: 0px auto; background-color: #fff">
        <div id="head" style="width: 100%; height: 150px; background-color: #124409; border: 0px none;
            margin: 0px;">
            <strong>head</strong></div>
        <div id="left" style="float: left; width: 180px; height: 500px; border: 0px none;
            background-color: #557891">
            <strong>left</strong></div>
        <div id="right" style="float: right; width: 770px; margin-left: 10px; height: 500px;
            border: 0px none; background-color: #fff;">
            <div style="width: 100%; height: 30px; margin-top: 5px; font: 14px; background-color: blue;
                text-indent: 一个单元; text-align: left;">
                人才详细资料</div>
            <div id="resumeMain">
                <table width="100%" border="0" style="text-align: left; margin: 0px auto;" cellpadding="0"
                    cellspacing="0">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif);
                                height: 27px;">
                                <tr>
                                    <td class="myqzzpTD">
                                        <div class="STYLE4">
                                            基本信息（ID:<asp:Label ID="lblResumeId" runat="server" Text=""></asp:Label>）</div>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="64%" valign="bottom">
                                        <asp:FormView ID="fvBaseInfo" runat="server" Width="100%">
                                            <ItemTemplate>
                                                <table width="100%" border="0" cellpadding="4" cellspacing="1" bordercolor="#FFFFFF"
                                                    class="mytable">
                                                    <tr>
                                                        <td bgcolor="#F9F9F9" rowspan="4" style="width: 219px;">
                                                            <div style="margin-top: 0px; height: 40px; font-size: 40px; font-weight: bold;">
                                                                <%#Eval("name") %></div>
                                                        </td>
                                                        <td bgcolor="#FBFCEF" style="text-align: right; padding-right: 10px;">
                                                            <%# Eval("sex") %>
                                                            |
                                                            <%# Eval("marriage")%>
                                                            |
                                                            <%#WebManager.BasePage.SetTimeFormat(Convert.ToDateTime(Eval("birthday")))%>
                                                            | 户口：<%# WebManager.BasePage.SetHKPlace(Eval("HKPlace")) %>| 现居于<%#WebManager.BasePage.SetCity(Eval("city"))%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#FBFCEF" style="text-align: right; padding-right: 10px;">
                                                            工作经验：<%#Eval("workYear")%>|
                                                            <%#WebManager.BasePage.SetPoliState(Eval("politicsStatus"))%>
                                                            | 身份证：<%#WebManager.BasePage.SetCard(Eval("card"))%>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#FBFCEF" style="text-align: right; padding-right: 10px;">
                                                            <%#WebManager.BasePage.SetPhone(Eval("cellphone"))%>（手机）
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#FBFCEF" style="text-align: right; padding-right: 10px;">
                                                            Email：<%#WebManager.BasePage.SetEmail(Eval("email"))%>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </asp:FormView>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif);
                                height: 27px;">
                                <tr>
                                    <td class="myqzzpTD">
                                        <div class="STYLE4">
                                            求职意向</div>
                                    </td>
                                </tr>
                            </table>
                            <asp:FormView ID="fvIntention" runat="server" Width="100%">
                                <ItemTemplate>
                                    <table border="0" align="center" cellpadding="4" cellspacing="1" style="background-color: #fff;
                                        width: 100%; border-color: #fff;" class="mytable">
                                        <tr>
                                            <td width="25%" bgcolor="#F9F9F9">
                                                期望工作性质：
                                            </td>
                                            <td width="75%" bgcolor="#FBFCEF">
                                                <%#Eval("jobCategory")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="background-color: #F9F9F9;">
                                                期望从事职业：
                                            </td>
                                            <td style="background-color: #FBFCEF; height: 40px;">
                                                <%#Eval("profession")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9" style="padding-top: 0px;">
                                                期望从事行业：
                                            </td>
                                            <td  bgcolor="#FBFCEF">
                                                <%#Eval("industry")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                期望工作地点：
                                            </td>
                                            <td  bgcolor="#FBFCEF">
                                                <%#Eval("area")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                期望月薪：
                                            </td>
                                            <td  bgcolor="#FBFCEF">
                                                <%#Eval("pay")%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                目前状况：
                                            </td>
                                            <td  bgcolor="#FBFCEF">
                                                <%#Eval("state")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:FormView>
                            <br />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif);
                                height: 27px;">
                                <tr>
                                    <td class="myqzzpTD">
                                        <div class="STYLE4">
                                            工作经历</div>
                                    </td>
                                </tr>
                            </table>
                            <asp:Repeater ID="rpRecord" runat="server">
                                <ItemTemplate>
                                    <table width="100%" border="0" cellpadding="4" cellspacing="1" style="background-color: #fff;"
                                        class="mytable">
                                        <tr>
                                            <td width="25%" bgcolor="#F9F9F9">
                                                <%# WebManager.BasePage.SetTimeFormat(Convert.ToDateTime(Eval("beginTime"))) %>-<%#WebManager.BasePage.SetTimeFormat(Convert.ToDateTime(Eval("endTime"))) %>
                                            </td>
                                            <td bgcolor="#FBFCEF" style="width: 608px">
                                                <%#Eval("title") %>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#FBFCEF">
                                                <%#Eval("content") %>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#FBFCEF">
                                                <%#Eval("details") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:Repeater>
                            <br />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif);
                                height: 27px;">
                                <tr>
                                    <td class="myqzzpTD">
                                        <div class="STYLE4">
                                            培训经历</div>
                                    </td>
                                </tr>
                            </table>
                            <asp:Repeater ID="rpTraning" runat="server">
                                <ItemTemplate>
                                    <table width="100%" border="0" cellpadding="4" cellspacing="1"
                                        class="mytable">
                                        <tr>
                                            <td width="200" bgcolor="#F9F9F9">
                                                <%#WebManager.BasePage.SetTimeFormat(Convert.ToDateTime(Eval("beginTime"))) %>-<%# WebManager.BasePage.SetTimeFormat(Convert.ToDateTime(Eval("endTime"))) %>
                                            </td>
                                            <td bgcolor="#FBFCEF" style="width: 608px">
                                                <%#Eval("tittle") %>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                &nbsp;
                                            </td>
                                            <td bgcolor="#FBFCEF">
                                                <%#Eval("details") %>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td bgcolor="#F9F9F9">
                                                获得证书：
                                            </td>
                                            <td bgcolor="#FBFCEF">
                                                <%#Eval("result") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:Repeater>
                            <br />
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif);
                                height: 27px;">
                                <tr>
                                    <td class="myqzzpTD">
                                        <div class="STYLE4">
                                            精通技能</div>
                                    </td>
                                </tr>
                            </table>
                            <asp:FormView ID="fvSkill" runat="server" Width="100%">
                                <ItemTemplate>
                                    <table width="100%" border="0" cellpadding="4" cellspacing="1" bordercolordark="#FFFFFF"
                                        class="mytable">
                                        <tr>
                                            <td bgcolor="#F9F9F9" style="text-align: left;">
                                                <%#Eval("Name") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:FormView>
                            <br />
                            <asp:Repeater ID="rpCustom" runat="server">
                                <ItemTemplate>
                                    <table width="100%" height="27" border="0" cellpadding="0" cellspacing="0" style="background-image: url(../resumemanager/images/bg_rem.gif)">
                                        <tr>
                                            <td class="myqzzpTD">
                                                <div class="STYLE4">
                                                    <%#Eval("tittle") %></div>
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%" border="0" cellpadding="4" cellspacing="1" bordercolordark="#FFFFFF"
                                        class="mytable">
                                        <tr>
                                            <td width="153" bgcolor="#F9F9F9">
                                                <%#Eval("content") %>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
